Optimal. Leaf size=96 \[ -\frac{\tan (e+f x) (1-\sec (e+f x))^{-m-\frac{1}{2}} (a-a \sec (e+f x))^m (d \sec (e+f x))^n F_1\left (n;\frac{1}{2}-m,\frac{1}{2};n+1;\sec (e+f x),-\sec (e+f x)\right )}{f n \sqrt{\sec (e+f x)+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.118964, antiderivative size = 96, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {3828, 3827, 133} \[ -\frac{\tan (e+f x) (1-\sec (e+f x))^{-m-\frac{1}{2}} (a-a \sec (e+f x))^m (d \sec (e+f x))^n F_1\left (n;\frac{1}{2}-m,\frac{1}{2};n+1;\sec (e+f x),-\sec (e+f x)\right )}{f n \sqrt{\sec (e+f x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3828
Rule 3827
Rule 133
Rubi steps
\begin{align*} \int (d \sec (e+f x))^n (a-a \sec (e+f x))^m \, dx &=\left ((1-\sec (e+f x))^{-m} (a-a \sec (e+f x))^m\right ) \int (1-\sec (e+f x))^m (d \sec (e+f x))^n \, dx\\ &=-\frac{\left (d (1-\sec (e+f x))^{-\frac{1}{2}-m} (a-a \sec (e+f x))^m \tan (e+f x)\right ) \operatorname{Subst}\left (\int \frac{(1-x)^{-\frac{1}{2}+m} (d x)^{-1+n}}{\sqrt{1+x}} \, dx,x,\sec (e+f x)\right )}{f \sqrt{1+\sec (e+f x)}}\\ &=-\frac{F_1\left (n;\frac{1}{2}-m,\frac{1}{2};1+n;\sec (e+f x),-\sec (e+f x)\right ) (1-\sec (e+f x))^{-\frac{1}{2}-m} (d \sec (e+f x))^n (a-a \sec (e+f x))^m \tan (e+f x)}{f n \sqrt{1+\sec (e+f x)}}\\ \end{align*}
Mathematica [F] time = 0.206287, size = 0, normalized size = 0. \[ \int (d \sec (e+f x))^n (a-a \sec (e+f x))^m \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.786, size = 0, normalized size = 0. \begin{align*} \int \left ( d\sec \left ( fx+e \right ) \right ) ^{n} \left ( a-a\sec \left ( fx+e \right ) \right ) ^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (-a \sec \left (f x + e\right ) + a\right )}^{m} \left (d \sec \left (f x + e\right )\right )^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (-a \sec \left (f x + e\right ) + a\right )}^{m} \left (d \sec \left (f x + e\right )\right )^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (d \sec{\left (e + f x \right )}\right )^{n} \left (- a \left (\sec{\left (e + f x \right )} - 1\right )\right )^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (-a \sec \left (f x + e\right ) + a\right )}^{m} \left (d \sec \left (f x + e\right )\right )^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]